package de.uni.muenster.idw2.data;

import java.util.ArrayList;



import android.os.Parcel;
import android.os.Parcelable;

public class Landmark implements Parcelable{

	private String name;
	private ArrayList<Node> nodes = new ArrayList<Node>();
	private int visibility;
	private String text;
	
	public Landmark(Parcel source){
		name = source.readString();
//		position = source.readParcelable(Position.class.getClassLoader());
	}
	
	public Landmark(String name) {
		super();
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public ArrayList<Node> getNodes() {
		return nodes;
	}

	public void setNodes(ArrayList<Node> nodes) {
		this.nodes = nodes;
	}


	public int getVisibility() {
		return visibility;
	}


	public void setVisibility(int visibility) {
		this.visibility = visibility;
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
//		dest.writeParcelable(position, flags);
		
	}
	
	public static final Parcelable.Creator CREATOR = new Creator() {

		@Override
		public Landmark createFromParcel(Parcel source) {
			return new Landmark(source);
		}

		@Override
		public Landmark[] newArray(int size) {
			return new Landmark[size];
		}
	};
	
	
}
